Rem
Common constants for mscchat client and server, part of mscchat

Copyright (c) 2009 Michael Schaefer and Immo-Gert Birn

mscchat is free software: you can redistribute it And/Or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, Or
(at your option) any later version.

Mscchat is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY Or FITNESS For A PARTICULAR PURPOSE.  See the
GNU General Public License For more details.

You should have received a copy of the GNU General Public License
along with Mscchat.  If Not, see <http://www.gnu.org/licenses/>.
EndRem


Const c_localhost:String    = "127.0.0.1"
Const c_internethost:String = "computerkoenig.dyndns.org"

Const c_port:Int         = 3333
Const c_internetport:Int = 8750

Const c_timertick_hz:Int = 10

Const c_slot_name:Int = 0
Const c_slot_raum:Int = 1
Const c_slot_text:Int = 2
Const c_slot_befehl:Int = 3
Const c_slot_rang:Int = 4
Const c_slot_to_name:Int = 5
Const c_slot_antwort:Int = 6

Const c_befehl_anmelden:String   = "!"  ' Prefix, gefolgt von Passwort
Const c_befehl_abmelden:String   = "byebye"
Const c_befehl_stopserver:String = "stoppe server"
Const c_befehl_beendeclients:String = "beende clients"
Const c_befehl_shutdownpcs:String = "herunterfahren"
Const c_befehl_shutdownpcsAbbrechen:String = "herunterfahren abbrechen"
Const c_status_abgemeldet:String = "abgemeldet"
Const c_befehl_kickuser:String = "kick"

Const c_rang_admin:Int     = 3
Const c_rang_moderator:Int = 2
Const c_rang_gast:Int      = 1

Const c_server_name:String = "Server"
Const c_client_name:String = "Client"
Const c_an_alle:String     = "2AllClients"

Const c_error_anmeldung:String = "erroranmeldung"
Const c_ok_anmeldung:String    = "okanmeldung"

Const c_debug:Int = False

' Achtung: keine Menubefehle über 10000 verwenden (sind für generische Befehle, siehe chatbefehle.bmx,
' TBefehl.menu_id
Const c_befehle_offset:Int = 10000
Const c_menu_beenden:Int   = 101
Const c_menu_anmelden:Int  = 201
Const c_menu_abmelden:Int  = 202
Const c_menu_schrift10:Int = 301
Const c_menu_schrift12:Int = 302
Const c_menu_schrift14:Int = 303

Const c_menu_about:Int     = 501

Const c_eventdata_anmeldefehler:Int  = 1
Const c_eventdata_anmeldung_ok:Int   = 2
Const c_eventdata_neuer_benutzer:Int = 3
Const c_eventdata_benutzer_weg:Int   = 4
Const c_eventdata_server_weg:Int     = 5
Const c_eventdata_befehl:Int         = 6